﻿@section header
{
<link href="@Url.Content("~/Content/Online/Sprint.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/Online/BusinessProvider/fKanban.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Online/BusinessProvider/fKanban.sprint.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Utility/Index.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Online/Sprint.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.core.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.ui.datepicker.js")" type="text/javascript"></script>
}

@{
    var userStory = ViewData["userStory"] as fKanban.Model.UserStoryEntity;
}
@Html.Partial("SprintAddControl", userStory)
<div class="sprints">
    <table class="sprint_table">
        <tr class="sprint_table_head_row">
            <td class="endDate">结束日期EndDate</td>
            <td class="name"><a href="javascript:;"class="jAddNewItem" data-value="sprint-add-panel">+冲刺名称SprintName</a></td>
            <td class="description">描述Desc</td>
            <td class="duration">理想进度Progress in Plan</td>
            <td class="scrumMaster">Scrum Master</td>
            <td class="modify">管理Manage</td>
        </tr>
@{
    var sprintList = ViewData["sprints"] as List<fKanban.Model.SprintEntity>;
    if(sprintList!=null&&sprintList.Count>0){
        foreach (var item in sprintList)
        {
        <tr class="sprint_row">
            <td class="demoDate">
                <span class="f_demo_date">@item.EndDateDescription</span>
            </td>
            <td class="name">
                <a class="lLink" href="/Shopping/Online/fKanban/@ViewData["id"]/@ViewData["userStoryId"]/@item.Id">
                <span class="Id">@item.Id</span>
                @item.Name</a> 
                <span class="startDate">@item.Progress</span>
                <br />@item.Description
            </td>
            <td class="description">描述Desc</td>
            <td class="duration">
                <span class="Duration">
                    <span class="indicator" style="max-width:300px;width:@{@item.ProgressLength}px">@item.ProgressValue%</span>
                </span>
            </td>
            <td class="scrumMaster">
            <a href="http://phone.vancloa.cn/module/AdvancedSearchs.aspx?type=simpleSearch&objectname=@item.ScrumMaster">@item.ScrumMaster</a></td>
            <td>
                <a href="javascript:;" class="modify" data-sprintid="@item.Id" data-rowid="sprint@{@item.Id}">编辑Modify</a> 
                <a href="javascript:;" class="remove" data-sprintid="@item.Id" data-rowid="sprint@{@item.Id}">删除Remove</a>
            </td>
        </tr>    
        }
    }
    }
    </table>
</div>